home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / valloc.man < prev    next >
Encoding:
Text File  |  1992-04-20  |  1.0 KB  |  69 lines

  1.  
  2.  
  3.  
  4. valloc                C Library Procedures                 valloc
  5.  
  6.  
  7.  
  8. _________________________________________________________________
  9.  
  10. NNAAMMEE
  11.      valloc - page-aligned memory allocator
  12.  
  13. SSYYNNOOPPSSIISS
  14.      ##iinncclluuddee <<uunniissttdd..hh>>
  15.  
  16.      void *
  17.      vvaalllloocc(_s_i_z_e)
  18.  
  19. AARRGGUUMMEENNTTSS
  20.      size_t   _s_i_z_e   (in)      Number of bytes to allocate.
  21.  
  22. _________________________________________________________________
  23.  
  24.  
  25. DDEESSCCRRIIPPTTIIOONN
  26.      vvaalllloocc is like mmaalllloocc, except that the pointer it returns is
  27.      guaranteed to be page-aligned.
  28.  
  29.  
  30. BBUUGGSS
  31.      Using ffrreeee to deallocate vvaalllloocc'd memory can corrupt mmaalllloocc.
  32.      Unfortunately, there is no vvffrreeee routine, so it is currently
  33.      impossible to free vvaalllloocc'd memory.
  34.  
  35.  
  36. KKEEYYWWOORRDDSS
  37.      memory, alloc
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65. Sprite v.1.0        Printed:  April 20, 1992                    1
  66.  
  67.  
  68.  
  69.